import { type ConfigEnv, type UserConfigExport, loadEnv } from "vite"
import {resolve} from "path";

export default ({ mode }: ConfigEnv): UserConfigExport=>{
  return {
    build: {
      lib: {
        // Could also be a dictionary or array of multiple entry points
        entry: resolve(__dirname, 'PluginParent/PluginTest/main.ts'),
        name: 'PluginTest',
        // the proper extensions will be added
        fileNames: 'main',
      },
    },
  }
}
